﻿<?xml version="1.0" encoding="utf-8"?>
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">DovasDateTimeSecField</Field>
		<Field Name="TypeDisplayName">Data, laikas ir sekundes</Field>
		<Field Name="TypeShortDescription">Data, laikas ir sekundes </Field>
		<Field Name="UserCreatable">TRUE</Field>
		<Field Name="ShowInListCreate">TRUE</Field>
		<Field Name="ShowInSurveyCreate">TRUE</Field>
		<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
		<Field Name="ShowInColumnTemplateCreate">TRUE</Field>
		<Field Name="InternalType">DateTime</Field>
		<Field Name="SQLType">datetime</Field>
		<Field Name="FieldTypeClass">BAS.Dovas.WebControls.DovasFieldDateTimeSec,BAS.Dovas.DateTimeSecField, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ef72d5cefb9f703d</Field>
		<Field Name="FieldEditorUserControl">/_controltemplates/BAS.Dovas/DateTimeSecFieldEditControl.ascx</Field>

		<Field Name="ParentType"></Field>
		<Field Name="Sortable">TRUE</Field>
		<Field Name="Filterable">TRUE</Field>
		<RenderPattern Name="HeaderPattern">
			<Switch>
				<Expr>
					<Property Select='Filterable'/>
				</Expr>
				<Case Value="FALSE"> </Case>
				<Default>
					<Switch>
						<Expr>
							<GetVar Name='Filter'/>
						</Expr>
						<Case Value='1'>
							<HTML><![CDATA[<SELECT ID="diidFilter]]></HTML>
							<Property Select='Name'/>
							<HTML>                  <![CDATA[" TITLE=]]></HTML>
							<HTML>"$Resources:core,501;</HTML>
							<Property Select='DisplayName' HTMLEncode='TRUE'/>
							<HTML><![CDATA[" OnChange='FilterField("]]></HTML>
							<GetVar Name="View"/>
							<HTML><![CDATA[",]]></HTML>
							<ScriptQuote>
								<Property Select='Name' URLEncode="TRUE"/>
							</ScriptQuote>
							<HTML><![CDATA[,this.options[this.selectedIndex].value, this.selectedIndex);' dir="]]></HTML>
							<Property Select="Direction" HTMLEncode="TRUE"/>
							<HTML><![CDATA[">]]></HTML>
							<FieldFilterOptions BooleanTrue="$Resources:core,fld_yes;" BooleanFalse="$Resources:core,fld_no;" NullString="$Resources:core,fld_empty;" AllItems="$Resources:core,fld_all;"></FieldFilterOptions>
							<HTML><![CDATA[</SELECT><BR>]]></HTML>
						</Case>
					</Switch>
				</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select='Sortable'/>
				</Expr>
				<Case Value="FALSE">
					<Property Select='DisplayName' HTMLEncode="TRUE"/>
				</Case>
				<Default>
					<Switch>
						<Expr>
							<GetVar Name='SortDisable'/>
						</Expr>
						<Case Value='TRUE'>
							<Property Select='DisplayName' HTMLEncode="TRUE"/>
						</Case>
						<Default>
							<HTML><![CDATA[<A ID="diidSort]]></HTML>
							<Property Select='Name'/>
							<HTML>        <![CDATA[" onfocus="OnFocusFilter(this)" TITLE=]]></HTML>
							<HTML>"$Resources:core,500;</HTML>
							<Property Select='DisplayName' HTMLEncode='TRUE'/>
							<HTML><![CDATA[" HREF="javascript:" OnClick="javascript:return OnClickFilter(this,event);" ]]></HTML>
							<HTML><![CDATA[ SORTINGFIELDS="]]></HTML>
							<FieldSortParams HTMLEncode="TRUE"/>
							<HTML><![CDATA[">]]></HTML>
							<Property Select='DisplayName' HTMLEncode="TRUE"/>
							<HTML><![CDATA[<img src="/_layouts/images/blank.gif" class="ms-hidden" border=0 width=1 height=1 alt="]]></HTML>
							<HTML>$Resources:OpenMenuKeyAccessible;</HTML>
							<HTML><![CDATA[">]]></HTML>
							<HTML><![CDATA[</A><IMG SRC="]]></HTML>
							<FieldSortImageURL/>
							<HTML><![CDATA[" ALT="]]></HTML>
							<Switch>
								<Expr>
									<GetVar Name='SortDir'/>
								</Expr>
								<Case Value='Asc'>
									<HTML>$Resources:core,150;</HTML>
								</Case>
								<Case Value='Desc'>
									<HTML>$Resources:core,151;</HTML>
								</Case>
								<Default>
									<HTML></HTML>
								</Default>
							</Switch>
							<HTML><![CDATA[" BORDER=0>]]></HTML>
						</Default>
					</Switch>
				</Default>
			</Switch>
			<HTML><![CDATA[<IMG SRC="]]></HTML>
			<FieldFilterImageURL/>
			<HTML><![CDATA[" BORDER=0 ALT="">]]></HTML>
		</RenderPattern>
		<RenderPattern Name="DisplayPattern">
			<FieldSwitch>
				<Expr>
					<GetVar Name="FreeForm"/>
				</Expr>
				<Case Value="TRUE">
					<Column HTMLEncode="TRUE"/>
				</Case>
				<Default>
					<HTML><![CDATA[<NOBR>]]></HTML>
					<Column HTMLEncode="TRUE"/>
					<HTML><![CDATA[</NOBR>]]></HTML>
				</Default>
			</FieldSwitch>
		</RenderPattern>
		<RenderPattern Name="EditPattern">
			<HTML><![CDATA[<SCRIPT>fld = new DateField(frm,]]></HTML>
			<ScriptQuote>
				<Property Select="Name"/>
			</ScriptQuote>
			<HTML>,</HTML>
			<ScriptQuote>
				<Property Select="DisplayName"/>
			</ScriptQuote>
			<HTML>,</HTML>
			<ScriptQuote>
				<Column HTMLEncode="TRUE" />
			</ScriptQuote>
			<HTML>);</HTML>
			<Switch>
				<Expr>
					<Property Select="Format"/>
				</Expr>
				<Case Value="DateOnly">fld.fDateOnly = true;</Case>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Description"/>
				</Expr>
				<Case Value=""/>
				<Default>fld.fHideDescription = true;</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="CalType"/>
				</Expr>
				<Case Value="">
					<HTML>fld.caltype = </HTML>
					<ProjectProperty Select="CalendarType"/>
					<HTML>;</HTML>
				</Case>
				<Default>
					<HTML>fld.caltype = </HTML>
					<Property Select="CalType"/>
					<HTML>;</HTML>
				</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Direction" HTMLEncode="TRUE"/>
				</Expr>
				<Case Value="LTR">
					<HTML>fld.direction =1;</HTML>
				</Case>
				<Case Value="RTL">
					<HTML>fld.direction =2;</HTML>
				</Case>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Required"/>
				</Expr>
				<Case Value="TRUE">fld.fRequired = true;</Case>
			</Switch>
			<HTML><![CDATA[fld.IMEMode="]]></HTML>
			<Switch>
				<Expr>
					<Property Select="Type"/>
				</Expr>
				<Case Value="Lookup">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="DateTime">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="GridChoice">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Calculated">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Currency">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Number">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="User">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Boolean">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Default>
					<Property Select="IMEMode" HTMLEncode="TRUE"/>
				</Default>
			</Switch>
			<HTML><![CDATA[";]]></HTML>
			<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="NewPattern" DisplayName="NewPattern">
			<HTML><![CDATA[<SCRIPT>fld = new DateField(frm,]]></HTML>
			<ScriptQuote>
				<Property Select="Name"/>
			</ScriptQuote>
			<HTML>,</HTML>
			<ScriptQuote>
				<Property Select="DisplayName"/>
			</ScriptQuote>
			<HTML>,</HTML>
			<Switch>
				<Expr>
					<Property Select="Default"/>
				</Expr>
				<Case Value="[today]">
					<HTML>"</HTML>
					<TodayISO/>
					<HTML>"</HTML>
				</Case>
				<Default>
					<ScriptQuote>
						<Column HTMLEncode="TRUE" />
					</ScriptQuote>
				</Default>
			</Switch>
			<HTML>);</HTML>
			<Switch>
				<Expr>
					<Property Select="Format"/>
				</Expr>
				<Case Value="DateOnly">fld.fDateOnly = true;</Case>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Description"/>
				</Expr>
				<Case Value=""/>
				<Default>fld.fHideDescription = true;</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="CalType"/>
				</Expr>
				<Case Value="">
					<HTML>fld.caltype = </HTML>
					<ProjectProperty Select="CalendarType"/>
					<HTML>;</HTML>
				</Case>
				<Default>
					<HTML>fld.caltype = </HTML>
					<Property Select="CalType"/>
					<HTML>;</HTML>
				</Default>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Direction" HTMLEncode="TRUE"/>
				</Expr>
				<Case Value="LTR">
					<HTML>fld.direction =1;</HTML>
				</Case>
				<Case Value="RTL">
					<HTML>fld.direction =2;</HTML>
				</Case>
			</Switch>
			<Switch>
				<Expr>
					<Property Select="Required"/>
				</Expr>
				<Case Value="TRUE">fld.fRequired = true;</Case>
			</Switch>
			<HTML><![CDATA[fld.IMEMode="]]></HTML>
			<Switch>
				<Expr>
					<Property Select="Type"/>
				</Expr>
				<Case Value="Lookup">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="DateTime">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="GridChoice">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Calculated">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Currency">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Number">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="User">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Case Value="Boolean">
					<HTML><![CDATA[inactive]]></HTML>
				</Case>
				<Default>
					<Property Select="IMEMode" HTMLEncode="TRUE"/>
				</Default>
			</Switch>
			<HTML><![CDATA[";]]></HTML>
			<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="PreviewDisplayPattern">
			<HTML><![CDATA[["]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE"/>
			<HTML>"$Resources:core,fldtypes011;</HTML>
		</RenderPattern>
		<RenderPattern Name="PreviewEditPattern">
			<HTML><![CDATA[<input class="ms-input" size="15" value="&quot;]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE"/>
			<HTML><![CDATA[&quot;]]></HTML>
			<HTML>$Resources:core,fldtypes012;</HTML>
			<HTML><![CDATA["> <img class="ms-button" src="/_layouts/images/calendar.gif">]]></HTML>
			<Switch>
				<Expr>
					<Property Select="Format"/>
				</Expr>
				<Case Value="DateOnly"/>
				<Default>
					<HTML><![CDATA[&nbsp;&nbsp;<select><option selected>12 AM</option></select>&nbsp;&nbsp;<select><option selected>00</option></select>]]></HTML>
				</Default>
			</Switch>
			<HTML><![CDATA[<br> <span class="ms-formdescription">]]></HTML>
			<HTML>$Resources:core,fldtypes010;</HTML>
			<HTML><![CDATA[</span>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="PreviewNewPattern">
			<HTML><![CDATA[<input class="ms-input" size="15" value="&quot;]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE"/>
			<HTML><![CDATA[&quot;]]></HTML>
			<HTML>$Resources:core,fldtypes012;</HTML>
			<HTML><![CDATA["> <img class="ms-button" src="/_layouts/images/calendar.gif">]]></HTML>
			<Switch>
				<Expr>
					<Property Select="Format"/>
				</Expr>
				<Case Value="DateOnly"/>
				<Default>
					<HTML><![CDATA[&nbsp;&nbsp;<select><option selected>12 AM</option></select>&nbsp;&nbsp;<select><option selected>00</option></select>]]></HTML>
				</Default>
			</Switch>
			<HTML><![CDATA[<br> <span class="ms-formdescription">]]></HTML>
			<HTML>$Resources:core,fldtypes010;</HTML>
			<HTML><![CDATA[</span>]]></HTML>
		</RenderPattern>
	</FieldType>
</FieldTypes>



